server {
  listen 80;
  server_name {{ nexus_server_name }};

  # allow large uploads of files
  client_max_body_size 1G;

  # optimize downloading files larger than 1G
  ##proxy_max_temp_file_size 2G;

  proxy_send_timeout 120;
  proxy_read_timeout 300;
  proxy_buffering    off;
  keepalive_timeout  5 5;
  tcp_nodelay        on;

  location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://127.0.0.1:{{ nexus_http_port }};
  }
}
